package com.westa.smallshop.login;

import com.westa.smallshop.common.BasePresenter;
import com.westa.smallshop.common.BaseView;

/**
 * Created by cy123 on 2016/9/13.
 */
interface LoginContract {
    interface View extends BaseView<Presenter> {

        void loginSuccessful();

        void loginFailed(String errorMsg);

        void showAccountEmptyError();

        void showPasswordEmptyError();

        void showLoginDialogProgress();

    }

    interface Presenter extends BasePresenter {

        void doLogin(String account, String password);

        void cancelLogin();

    }
}
